

<script>
// 权限校验的函数式组件
import {check} from '../utils/auth'
export default {
  functional: true,
  props: {
    authority:{
      type:Array,
      required: true
    }
  },
  render(h, context) {
    const {props, scopedSlots} = context
    return check(props.authority) ? scopedSlots.default():null
  }
  
}
</script>

<style lang="less" scoped>
</style>